package com.su.lightthings.entity

//import io.objectbox.annotation.Entity
//import io.objectbox.annotation.Id
//import io.objectbox.annotation.Index
//import io.objectbox.annotation.Unique
//import io.objectbox.relation.ToOne


/**
 * 数据库-运动数据类
 *
 *  @param type  运动类型
 *  @param timeStamp 运动开始时间戳
 *  @param duration 运动时长 (s)
 *  @param step 运动步数
 *  @param cal 卡路里 (卡)
 *  @param distance 运动距离(米)
 *  @param heart 心率
 *  @param pace 配速(分/公里)
 *  @param cadence 步频(步/分钟)
 */
//@Entity
data class SportDataEntity(
//    @Id
    var id: Long = 0L,
//    @Index
//    @Unique/*(onConflict = ConflictStrategy.REPLACE)*/
    val timeStamp: Long = 0L,
    val type: Int = 0,
    val duration: Long = 0L,
    val step: Long = 0L,
    val cal: Long = 0L,
    val distance: Long = 0L,
    val heart: Int = 0,
    val pace: String = "",
    val cadence: Int = 0
) {
//    lateinit var device: ToOne<ConnectedDeviceEntity>
}